package com.ergwang.dao;

import com.ergwang.Model.Admin;
import com.ergwang.Model.admin.bo.AdminChangePwdBO;

import java.util.List;

/**
 * Creat by ergWang
 * Date: 2020/5/29
 * Time: 00:24
 */
public interface AdminDao {
    Admin login(Admin admin);

    List<Admin> allAdmins();

    List<Admin> getSearchAdmins(Admin admin);

    int addAdminss(Admin admin);

    int deleteAdmins(Admin admin);

    Admin getAdminsInfo(Admin admin);

    int updateAdminss(Admin admin);

    int changePwd(AdminChangePwdBO changePwdBO);

    String getOldPwd(String adminToken);
}
